package org.dromara.bykt.domain.vo;

import java.util.Date;

import org.dromara.bykt.domain.BYKTCourseOrder;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 课程订单视图对象 course_order
 *
 * @author Hou
 * @date 2025-06-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BYKTCourseOrder.class)
public class BYKTCourseOrderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @ExcelProperty(value = "订单ID")
    private Long id;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 课程ID
     */
    @ExcelProperty(value = "课程ID")
    private Long courseId;

    /**
     * 支付金额
     */
    @ExcelProperty(value = "支付金额")
    private Long amount;

    /**
     * 状态（0未支付 1已支付 2已取消）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未支付,1=已支付,2=已取消")
    private String status;

    /**
     * 支付方式（1微信 2支付宝 3余额）
     */
    @ExcelProperty(value = "支付方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=微信,2=支付宝,3=余额")
    private String payType;

    /**
     * 支付时间
     */
    @ExcelProperty(value = "支付时间")
    private Date payTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private String nickName;

    private String userName;

    private String title;

}
